import request from '@/utils/request'

//运费规则
/**
 * 获取运费规则列表
 * @param {} data 
 * @returns 
 */

export function freightList(data) {
    return request({
        url: '/admin/template/templateList',
        method: 'post',
        data
    })
}

export function addFreight(data) {
    return request({
        url: '/admin/template/addTemplate',
        method: 'post',
        data
    })
}

export function editFreight(data) {
    return request({
        url: '/admin/template/editTemplate',
        method: 'post',
        data
    })
}

export function delFreight(data) {
    return request({
        url: '/admin/template/delTemplate',
        method: 'post',
        data
    })
}

// 获取省市信息
export function getaddress(data) {
    return request({
        url: '/admin/template/getProvince',
        method: 'post',
        data
    })
}